"""
需求1:
* * *
* * *
* * *
"""
i = 1
while i <= 3:
    j = 1
    while j <= 3:
        print('*', end=' ')
        j += 1
    print()
    i += 1

"""
需求2:
*
* *
* * *
"""
i = 1
while i <= 3:
    j = 1
    while j <= i:
        print('*', end=' ')
        j += 1
    print()
    i += 1
